<div id="contener" _height="auto">
	<?php $this->beginWidget('application.widget.site.userLeftWidget'); ?>
	<?php $this->endWidget(); ?>
	<div class="main2">
		<div id="news">
			<div class="text"><a href="news.html">
				<div class="news">現在加入會員拿好禮!</div>
				</a></div>
		</div>
		<div class="right_mainBox">
			<div class="right_mainBox_top"></div>
			<div class="mainMenu"><img src="images/title99.png" width="726" height="23" alt="點數 & 購物金明細" title="點數 & 購物金明細" /></div>
			<div class="mainContentBox">
				<div class="memberBOX2">
					<table width="716" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:15px">
						<tr>
							<td width="117" height="35" valign="middle" nowrap="nowrap" class="bottom_line">鴻運點數：</td>
							<td width="241" align="center" valign="middle" class="bottom_line"><span class="red"><?=$model->hongyun?></span></td>
							<td width="117" valign="middle" nowrap="nowrap" class="bottom_line">購物金：</td>
							<td align="center" valign="middle" class="bottom_line"><span class="red"><?=$model->coin?></span></td>
						</tr>
						<tr>
							<td height="35" valign="middle" nowrap="nowrap" class="bottom_line">待生效鴻運點數：</td>
							<td align="center" valign="middle" class="bottom_line"><span class="red"><?=(int)Helper::getunEffectCoin(2, $model->uid)?></span></td>
							<td valign="middle" nowrap="nowrap" class="bottom_line">待生效購物金：</td>
							<td align="center" valign="middle" class="bottom_line"><span class="red"><?=(int)Helper::getunEffectCoin(1, $model->uid)?></span></td>
						</tr>
						<tr>
							<td height="35" valign="middle" nowrap="nowrap">鴻運點數到期日期：</td>
							<td align="center" valign="middle"><span class="red"><?=$model->hy_expiry?></span></td>
							<td valign="middle" nowrap="nowrap">購物金到期日期：</td>
							<td align="center" valign="middle"><span class="red"><?=$model->coin_expiry?></span></td>
						</tr>
					</table>
					<table width="716" border="0" cellspacing="1" cellpadding="0" class="tbLINE">
						<tr>							
							<td width="100" align="center" valign="middle" background="images/bg1.gif">類別</td>
							<td align="center" valign="middle" background="images/bg1.gif">來源</td>
							<td width="100" align="center" valign="middle" background="images/bg1.gif">數值</td>
							<td width="100" align="center" valign="middle" background="images/bg1.gif">狀態</td>
							<td width="200" align="center" valign="middle" background="images/bg1.gif">創建時間</td>
							<td width="120" height="35" align="center" valign="middle" background="images/bg1.gif">生效日期</td>
						</tr>
						<?php
						if($rowset){
							foreach($rowset as $row){
						?>
						<tr>							
							<td align="center" valign="middle" ><?=Yii::app()->params['cointype'][$row->type]?></td>
							<td align="center" valign="middle"><?=Yii::app()->params['coinsource'][$row->source]?></td>
							<td align="center" valign="middle"><?=$row->amount?></td>
							<td align="center" valign="middle"><?=Yii::app()->params['coinstatus'][$row->status]?></td>
							<td align="center" valign="middle"><?=$row->dateline?></td>
							<td height="35" align="center" valign="middle"><?=$row->effectdate?></td>
						</tr>
						<?php
							}
						?>
						<tr>
							<td style="text-align:center;" height="30" colspan="6">
							<?php  
							$this->widget('CLinkPager',array(  
								'header'=>'',  
								'firstPageLabel' => '<<',
								'lastPageLabel' => '>>',
								'prevPageLabel' => '<',
								'nextPageLabel' => '>',
								'pages' => $pages,  
								'maxButtonCount'=>13  
								));  
							?>
							</td>
						</tr>
						<?php
						}else{
						?>
						<tr>
							<td height="35" align="center" valign="middle" colspan="6">暫無記錄</td>
						</tr>
						<?php
						}
						?>					
					</table>
				</div>
				<div class="memberBOX2">
					<ul>
						<li>鴻運點數/購物金:累積可以使用的鴻運點數/購物金。</li>
						<li>待生效鴻運點數/購物金:累積的待生效鴻運點數/購物金。</li>
						<li>鴻運點數及購物金<span class="red1">有效期限</span>自生效日起算為期<span class="red1">1年</span>，期限到期之鴻運點數及購物金即失效。使用者若在期限內重新獲得鴻運點數/購物金，即到期日期重新計算。
						<li>類別:區分鴻運點數或購物金。</li>
						<li>來源:鴻運點數或購物金獲得或抵用的原因。</li>
						<li>待生效:尚不可使用的鴻運點數或購物金。</li>
						<li>已生效:可使用的鴻運點數或購物金。</li>
						<li>已抵用:已經使用過的鴻運點數或購物金。</li>
						<li>已失效:已逾期或不可使用的購物金。</li>
						<li>退貨/取消訂單時，消費所獲得的點數會自動扣除。</li>
					</ul>
				</div>
			</div>
			<div class="right_mainBox_bottom"></div>
		</div>
	</div>
</div>
